﻿using System;
using System.Collections.Generic; 
using System.Text;
using ATSIDAL;
using ATSModel;
using Microsoft.Office.Interop.Excel;

namespace ATSBLL
{
   public class PrintRecordBll:BaseService<PrintRecordInfo>
    {
       private static readonly IPrintRecord dal = DALFactory.DataAccess.CreatePrintRecord();

       public override void SetCurrentRepository()
       {
           CurrentRepository = dal;
       }
       /// <summary>
       /// 用于打印软件的数据上传
       /// </summary>
       /// <param name="pti">实体</param>
       /// <returns>bool</returns>
       public bool PrintRecord_Insert(PrintRecordInfo pti)
       { 
           try
           { 
               return dal.PrintRecord_Insert(pti);
           }
           catch
           {
               return false;
           } 
       }
       /// <summary>
       /// 用于下载打印软件数据集合
       /// </summary>
       /// <param name="productSN">SN</param>
       /// <returns>List</returns>
       public IList<PrintRecordInfo> PrintRecord_GetbySN(string productSN) 
       {
           return dal.PrintRecord_GetbySN(productSN);
       }
    }
}
